(function(){ document.addEventListener('DOMContentLoaded', function(event){ wpcf7_recaptcha.execute=function(action){ grecaptcha.execute(wpcf7_recaptcha.sitekey, { action: action } ).then(function(token){ var event=new CustomEvent('wpcf7grecaptchaexecuted', { detail: { action: action, token: token, }, }); document.dispatchEvent(event); }); }; wpcf7_recaptcha.execute_on_homepage=function(){ wpcf7_recaptcha.execute(wpcf7_recaptcha.actions[ 'homepage' ]); }; wpcf7_recaptcha.execute_on_contactform=function(){ wpcf7_recaptcha.execute(wpcf7_recaptcha.actions[ 'contactform' ]); }; grecaptcha.ready(wpcf7_recaptcha.execute_on_homepage ); document.addEventListener('change', wpcf7_recaptcha.execute_on_contactform ); document.addEventListener('wpcf7submit', wpcf7_recaptcha.execute_on_homepage ); }); document.addEventListener('wpcf7grecaptchaexecuted', function(event){ var fields=document.querySelectorAll("form.wpcf7-form input[name='_wpcf7_recaptcha_response']" ); for(var i=0; i < fields.length; i++){ var field=fields[ i ]; field.setAttribute('value', event.detail.token); }}); })(); jQuery(document).ready(function(c){"use strict";c(document).on("click","a.compare:not(.added)",function(o){o.preventDefault();var e,t=c(this),a=c(".yith-woocompare-widget ul.products-list"),r=t.parents(".yith-woocompare-related"),i=!!r.length,n=i?r.data("iframe"):"no";e={action:yith_woocompare.actionadd,id:t.data("product_id"),context:"frontend",is_related:i,iframe:n},"undefined"!=typeof c.fn.block&&(t.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"20px 20px",opacity:.6}}),a.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"20px 20px",opacity:.6}})),c.ajax({type:"post",url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionadd),async:!1,data:e,dataType:i?"html":"json",success:function(o){i?(c("#yith-woocompare").replaceWith(c(o).filter("#yith-woocompare")),d(!1),c(document).trigger("yith_woocompare_page_refreshed",[!1]),t.addClass("added").attr("href","#").text(yith_woocompare.added_label)):(o.added&&t.addClass("added").attr("href",o.table_url).text(yith_woocompare.is_page?yith_woocompare.view_label:yith_woocompare.added_label),d(o.widget_table),"yes"!=yith_woocompare.auto_open||o.only_one||yith_woocompare.is_page||c("body").trigger("yith_woocompare_open_popup",{response:o.table_url,button:t}),c("body").trigger("yith_woocompare_product_added"));p(),"undefined"!=typeof c.fn.block&&(t.unblock(),a.unblock())}})}),yith_woocompare.is_page||c(document).on("click","a.compare.added",function(o){o.preventDefault();var e=this.href;void 0!==e&&c("body").trigger("yith_woocompare_open_popup",{response:e,button:c(this)})}),c("body").on("yith_woocompare_open_popup",function(o,e){var t=e.response;e.button;yith_woocompare.force_showing_popup||768<=c(window).width()?(c.colorbox({href:t,iframe:!0,width:"80%",height:"80%",fixed:!0,className:"yith_woocompare_colorbox",close:yith_woocompare.close_label,onClosed:function(){yith_woocompare.im_in_page?location.reload():(d(!1),p())},onComplete:function(){a(),c.dataTableFunction()}}),c(window).resize(function(){c.colorbox.resize({width:"90%",height:"90%"})})):window.location=yith_woocompare.page_url}),c(document).on("click",".compare-list .remove a, a.yith_woocompare_clear",function(o){o.preventDefault();var i=c(this),n=i.data("product_id"),e={action:yith_woocompare.actionremove,id:n,iframe:i.data("iframe"),context:"frontend"};"undefined"!=typeof c.fn.block&&i.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"20px 20px",opacity:.6}}),c.ajax({type:"post",url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionremove),async:!1,data:e,dataType:"html",success:function(o){var e=c(o).filter("#yith-woocompare");c("#yith-woocompare").replaceWith(e);var t="all"==n?".compare.added":'.compare[data-product_id="'+n+'"]',a=i.data("product_id"),r=yith_woocompare.custom_label_for_compare_button?i.closest("tbody").find("tr"+yith_woocompare.selector_for_custom_label_compare_button).find("td.product_"+a).text():yith_woocompare.button_text;c(t,window.parent.document).removeClass("added").html(r),d(!1),p(),c(document).trigger("yith_woocompare_product_removed",[""])}})}),c(".yith-woocompare-open a, a.yith-woocompare-open").on("click",function(o){yith_woocompare.is_page||(o.preventDefault(),c("body").trigger("yith_woocompare_open_popup",{response:function i(o,e){o=escape(o),e=escape(e);var t=document.location.search,a=o+"="+e,r=new RegExp("(&|\\?)"+o+"=[^&]*");t=t.replace(r,"$1"+a),RegExp.$1||(t+=(0 a",function(o){o.preventDefault();var e=c(this),t=e.closest("#yith-woocompare"),a=e.data("cat_id"),r=e.closest("#yith-woocompare-cat-nav > ul"),i=r.data("product_ids"),n=r.data("iframe");c.ajax({url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionfilter),data:{action:yith_woocompare.actionfilter,yith_compare_cat:a,yith_compare_prod:i,context:"frontend",iframe:n},dataType:"html",success:function(o){var e=c(o).filter("#yith-woocompare");t.replaceWith(e),c(document).trigger("yith_woocompare_page_refreshed",[e])}})});var a=function(){if("undefined"!=typeof c.fn.owlCarousel){var o=c("#yith-woocompare-related"),e=o.find(".related-products"),t=o.find(".related-slider-nav");if(!o.length)return;e.owlCarousel({autoplay:yith_woocompare.autoplay_related,autoplayHoverPause:!0,loop:!0,margin:15,responsiveClass:!0,responsive:{0:{items:2},480:{items:3},768:{items:yith_woocompare.num_related}}}),t.length&&(t.find(".related-slider-nav-prev").click(function(){e.trigger("prev.owl.carousel")}),t.find(".related-slider-nav-next").click(function(){e.trigger("next.owl.carousel")}))}};function i(o){for(var e=o+"=",t=document.cookie.split(";"),a=0;ai?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in y[0]&&!y[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),y.focus())}function c(t){c.str!==t&&(y.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!$){$=q=!0,c(_.get("className")),y.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=(l!==!1?Math.min(h,a(l,"x")):h)-z-D,_.h=(f!==!1?Math.min(s,a(f,"y")):s)-N-j,I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(S).hide(),y.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("
"),w()}}function p(){y||(V=!1,E=t(i),y=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),M=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),x=n(se,"Wrapper"),b=n(se,"Content").append(S=n(se,"Title"),F=n(se,"Current"),P=t('